﻿using System;
using SizeboxUI;
using UnityEngine;

// Token: 0x0200022E RID: 558
public class MainCameraController : MonoBehaviour
{
	// Token: 0x06000BB6 RID: 2998 RVA: 0x00061054 File Offset: 0x0005F254
	private void Awake()
	{
		this.playerCamera = base.GetComponent<PlayerCamera>();
		this.editCamera = base.GetComponent<EditPlacement>();
		base.gameObject.AddComponent<VRCamera>();
	}

	// Token: 0x06000BB7 RID: 2999 RVA: 0x0006107A File Offset: 0x0005F27A
	private void Update()
	{
		if (!GameController.Instance.paused)
		{
			GameController.playerInputEnabled = this.playerCamera.enabled;
		}
	}

	// Token: 0x06000BB8 RID: 3000 RVA: 0x0006109C File Offset: 0x0005F29C
	public void SwitchCameraMode()
	{
		if (this.playerCamera.enabled)
		{
			GameController.playerInputEnabled = false;
			this.playerCamera.enabled = false;
			this.editCamera.enabled = true;
		}
		else
		{
			this.editCamera.enabled = false;
			this.playerCamera.enabled = true;
			GameController.playerInputEnabled = true;
		}
	}

	// Token: 0x040010E1 RID: 4321
	private PlayerCamera playerCamera;

	// Token: 0x040010E2 RID: 4322
	private EditPlacement editCamera;
}
